home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17197 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: kaiwan.kaiwan.com!kaiwan-internet
  2. From: ozma@kaiwan009.kaiwan.com (Mike Zorn)
  3. Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
  4. Subject: Re: Will Java kill C++?
  5. Date: 14 Apr 1996 03:19:18 -0700
  6. Organization: Kaiwan, a PGP (Pretty Good Provider)
  7. Message-ID: <4kqjf6$kh0@kaiwan009.kaiwan.com>
  8. References: <3134D499.653E@ix.netcom.com> <313613B2.136E@ksopk.sprint.com> <4i7qhl$ik6@cronkite.seas.gwu.edu> <4iuhi7$fmf@sundog.tiac.net> <4iumap$mn5@hustle.rahul.net> <31582A45.3742@vmark.com> <3163C031.4FB1@esec.ch> <3164888D.2B01@concentric.net> <4kbfn8$1bu@news1.is.net>
  9. NNTP-Posting-Host: kaiwan009.kaiwan.com
  10.  
  11. In <4kbfn8$1bu@news1.is.net> mvantassel@teambca.com (Mark VanTassel) writes:
  12.  
  13. >"Alan L. Lovejoy" <alovejoy@concentric.net> wrote:
  14. >>Bzzzt!  Not according to the benchmarks I've done.  Go benchmark the factorial or fibonacci 
  15. >>functions (implemented recursively) in both C and a good Smalltalk.  You are in for a big
  16. >>surprise.
  17. >You're not seriously suggesting that a fibonacci series be programmed
  18. >recursively, are you??? Have you looked at the number of operations
  19. >involved in calculating, say, the 1000th term as vs a standard looping
  20. >approach?
  21. >I don't think this is a valid benchmark... (and I too fail to see how
  22. >Smalltalk can be faster than C++ except perhaps in bizarre special
  23. >cases)
  24.    True, the Fibonacci and factorial are not good candidates for a
  25. recursive algorithm.  (They're just taught that way because it's one
  26. of the few recursive problems that we can understand in first-year
  27. college courses.)
  28.    On the other hand, almost any interesting program, compiled & run
  29. in different languages, should be able to give a good idea of how the
  30. languages compare.  For my part, I'd also like to look at the source
  31. code, and know how long it took to write (and debug) the two programs.
  32.    So, Alan, I guess you'll have to come up with a program for
  33. Ackermann's Function in C++ and Smalltalk to satisfy the rest of us.
  34.  
  35. Mike Zorn      ozma@kaiwan.com   |  Thought for the day:
  36.   http://www.kaiwan.com/~ozma/   |    Java is C--
  37.